package com.qdlg.tating.service.serviceImp;

import com.qdlg.tating.dao.UserMapper;
import com.qdlg.tating.pojo.User;
import com.qdlg.tating.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2016/1/15 0015.
 */
@Service("userService")
public class UserServiceImp implements IUserService{

    @Resource
    private UserMapper userMapper;

    public void insertUser(User user) {
        userMapper.insert(user);
    }

    @Override
    public User validateUser(User user) {
        return  userMapper.validateUser(user);
    }
}
